//
//  JPLogger.h
//  JPWords
//
//  Created by 梁淑婷 on 2024/4/20.
//

#import <Foundation/Foundation.h>
#import "JPURLResponse.h"
#import "JPServiceProtocol.h"

NS_ASSUME_NONNULL_BEGIN

@interface JPLogger : NSObject

+ (NSString *)logDebugInfoWithRequest:(NSURLRequest *)request apiName:(NSString *)apiName service:(id <JPServiceProtocol>)service;

+ (NSString *)logDebugInfoWithResponse:(NSHTTPURLResponse *)response rawResponseData:(NSData *)rawResponseData responseString:(NSString *)responseString request:(NSURLRequest *)request error:(NSError *)error;

+ (NSString *)logDebugInfoWithCachedResponse:(JPURLResponse *)response methodName:(NSString *)methodName service:(id <JPServiceProtocol>)service params:(NSDictionary *)params;

@end

NS_ASSUME_NONNULL_END
